<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-size: 13px;
  padding: 1em;
}

h1 {
  font-size: 26px;
  margin-bottom: 1em;
}

h2 {
  font-size: 24px;
  margin-bottom: 1em;
}

h3 {
  font-size: 20px;
  margin-bottom: 1em;
  margin-top: 1em;
}

pre, code {
  line-height: 1.5;
  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
  margin-top: 0.5em;
}

h1, h2, h3, p {
  font-family: Arial, sans serif;
}

h1, h2, h3 {
  border-bottom: solid #CCC 1px;
}

.toc_element {
  margin-top: 0.5em;
}

.firstline {
  margin-left: 2 em;
}

.method  {
  margin-top: 1em;
  border: solid 1px #CCC;
  padding: 1em;
  background: #EEE;
}

.details {
  font-weight: bold;
  font-size: 14px;
}

</style>

<h1><a href="logging_v2.html">Cloud Logging API</a> . <a href="logging_v2.billingAccounts.html">billingAccounts</a> . <a href="logging_v2.billingAccounts.locations.html">locations</a> . <a href="logging_v2.billingAccounts.locations.recentQueries.html">recentQueries</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
  <code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
  <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
<p class="firstline">Lists the RecentQueries that were created by the user making the request.</p>
<p class="toc_element">
  <code><a href="#list_next">list_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<h3>Method Details</h3>
<div class="method">
    <code class="details" id="close">close()</code>
  <pre>Close httplib2 connections.</pre>
</div>

<div class="method">
    <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
  <pre>Lists the RecentQueries that were created by the user making the request.

Args:
  parent: string, Required. The resource to which the listed queries belong. &quot;projects/[PROJECT_ID]/locations/[LOCATION_ID]&quot; &quot;organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]&quot; &quot;billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]&quot; &quot;folders/[FOLDER_ID]/locations/[LOCATION_ID]&quot; For example:projects/my-project/locations/us-central1Note: The location portion of the resource must be specified, but supplying the character - in place of LOCATION_ID will return all recent queries. (required)
  filter: string, Optional. Specifies the type (&quot;Logging&quot; or &quot;OpsAnalytics&quot;) of the recent queries to list. The only valid value for this field is one of the two allowable type function calls, which are the following: type(&quot;Logging&quot;) type(&quot;OpsAnalytics&quot;)
  pageSize: integer, Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.
  pageToken: string, Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # The response from ListRecentQueries.
  &quot;nextPageToken&quot;: &quot;A String&quot;, # If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call the same method again using the value of nextPageToken as pageToken.
  &quot;recentQueries&quot;: [ # A list of recent queries.
    { # Describes a recent query executed on the Logs Explorer or Log Analytics page within the last ~ 30 days.
      &quot;lastRunTime&quot;: &quot;A String&quot;, # Output only. The timestamp when this query was last run.
      &quot;loggingQuery&quot;: { # Describes a Cloud Logging query that can be run in Logs Explorer UI or via the logging API.In addition to the query itself, additional information may be stored to capture the display configuration and other UI state used in association with analysis of query results. # Logging query that can be executed in Logs Explorer or via Logging API.
        &quot;filter&quot;: &quot;A String&quot;, # Required. An advanced query using the Logging Query Language (https://cloud.google.com/logging/docs/view/logging-query-language). The maximum length of the filter is 20000 characters.
        &quot;summaryFieldEnd&quot;: 42, # Characters will be counted from the end of the string.
        &quot;summaryFieldStart&quot;: 42, # Characters will be counted from the start of the string.
        &quot;summaryFields&quot;: [ # Optional. The set of summary fields to display for this saved query.
          { # A field from the LogEntry that is added to the summary line (https://cloud.google.com/logging/docs/view/logs-explorer-interface#add-summary-fields) for a query in the Logs Explorer.
            &quot;field&quot;: &quot;A String&quot;, # Optional. The field from the LogEntry to include in the summary line, for example resource.type or jsonPayload.name.
          },
        ],
      },
      &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the recent query.In the format: &quot;projects/[PROJECT_ID]/locations/[LOCATION_ID]/recentQueries/[QUERY_ID]&quot; For a list of supported locations, see Supported Regions (https://cloud.google.com/logging/docs/region-support)The QUERY_ID is a system generated alphanumeric ID.
      &quot;opsAnalyticsQuery&quot;: { # Describes an analytics query that can be run in the Log Analytics page of Google Cloud console.Preview: This is a preview feature and may be subject to change before final release. # Analytics query that can be executed in Log Analytics.
        &quot;sqlQueryText&quot;: &quot;A String&quot;, # Required. A logs analytics SQL query, which generally follows BigQuery format.This is the SQL query that appears in the Log Analytics UI&#x27;s query editor.
      },
    },
  ],
  &quot;unreachable&quot;: [ # The unreachable resources. Each resource can be either 1) a saved query if a specific query is unreachable or 2) a location if a specific location is unreachable. &quot;projects/[PROJECT_ID]/locations/[LOCATION_ID]/recentQueries/[QUERY_ID]&quot; &quot;projects/[PROJECT_ID]/locations/[LOCATION_ID]&quot; For example:&quot;projects/my-project/locations/global/recentQueries/12345678&quot; &quot;projects/my-project/locations/global&quot;If there are unreachable resources, the response will first return pages that contain recent queries, and then return pages that contain the unreachable resources.
    &quot;A String&quot;,
  ],
}</pre>
</div>

<div class="method">
    <code class="details" id="list_next">list_next()</code>
  <pre>Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call &#x27;execute()&#x27; on to request the next
          page. Returns None if there are no more items in the collection.
        </pre>
</div>

</body></html>